<template>
  <div class="user-info-container flex">
    <div class="con-left">
      <img src="./images/icon.png" alt="" />
    </div>
    <div class="con-right flex">
      <div class="right-top flex">
        <span class="userLabel">用户昵称：</span>
        <span class="userText">{{ info.username || '暂无' }}</span>
      </div>
      <div class="right-bottom">
        <span class="infoLabel">手机号：</span>
        <span class="infoText phone">{{ info.phone || '暂无' }}</span>
        <span class="infoLabel">区域：</span>
        <span class="infoText">{{ info.phone_info || '不祥' }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    info: {
      type: Object,
      default: () => {}
    }
  }
}
</script>

<style lang="less" scoped>
.user-info-container {
  .con-left {
    margin-right: 20px;
    img {
      width: 50px;
      height: 50px;
    }
  }
  .con-right {
    flex-direction: column;
    justify-content: space-between;
    .right-top {
      .userLabel,
      .userText {
        font-size: 20px;
        font-weight: 700;
      }
    }
    .right-bottom {
      .infoLabel {
        font-size: 14px;
        font-weight: 700;
      }
      .phone {
        margin-right: 10px;
      }
    }
  }
}
</style>
